<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>管理资源</title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
		<script type="text/javascript">
	function deleteArticle() {
		var result = confirm("确认删除吗？");
		return result;
	}
</script>
	</head>
	<body>
		<h1>
			资源管理 - ${category.name}
		</h1>
		<form id="mainForm" action="resource/manageResourcesByCid.action"
			method="post">
			<input type="hidden" name="cid" id="cid" value="${cid}" />
			<input type="hidden" name="page.pageNo" id="pageNo"
				value="${page.pageNo}" />
			<input type="hidden" name="page.orderBy" id="orderBy"
				value="${page.orderBy}" />
			<input type="hidden" name="page.order" id="order"
				value="${page.order}" />
			<table class="table_items" style="width: 735px;">
				<thead>
					<tr>
						<th>
							资源名称
						</th>
						<th class="td_link">
							状态
						</th>
						<th class="td_link">
							编辑
						</th>
						<th class="td_link">
							删除
						</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="page.result">
						<tr>
							<td>
								<font color="#CC5252">[<s:if test="type=='CASE'">案例教学</s:if>
									<s:elseif test="type=='POINT'">教学要点</s:elseif> <s:elseif
										test="type=='PLAN'">教学方案</s:elseif> <s:elseif
										test="type=='TOPIC'">热点难点解读</s:elseif> <s:elseif
										test="type=='STUFF'">教学资源</s:elseif> <s:elseif
										test="type=='MEANS'">教学方法</s:elseif> <s:elseif
										test="type=='LIVE'">实践教学</s:elseif> <s:else>未知</s:else>]</font>
								<a href="resource/viewResourceByUuid.action?uuid=${uuid}">
									${title}</a>
							</td>
							<td>
								<a href="review/reviewResourceByUuid.action?uuid=${uuid}"
									class="easyui-linkbutton"
									data-options="plain:true,iconCls:'icon-undo'"> <s:if
										test="status==0">
									待审核
								</s:if> <s:elseif test="status==1">
										二审通过
									</s:elseif> <s:elseif test="status==2">
										<font color="green">三审通过</font>
									</s:elseif> <s:elseif test="status==3">
										拒绝
									</s:elseif> <s:elseif test="status==-1">
										<font color="red">未通过</font>
									</s:elseif> </a>
							</td>
							<td>
								<a href="resource/toEditResource.action?uuid=${uuid}&cid=${cid}"
									class="easyui-linkbutton"
									data-options="plain:true,iconCls:'icon-edit'"></a>
							</td>
							<td>
								<a href="resource/deleteResource.action?uuid=${uuid}&cid=${cid}"
									class="easyui-linkbutton"
									data-options="plain:true,iconCls:'icon-cancel'" />
							</td>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<BR></BR>
		</form>
		<jsp:include page="../page.jsp"></jsp:include>
	</body>
</html>